package com.cuixichang.minimalism.basal.core;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

@ApiModel(value = "基础查询请求封装对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class BaseQueryRequest extends BaseRequest{

    /**
     * 数据查询开始时间
     */
    @ApiModelProperty(value = "数据查询开始时间", name = "startTime")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime startTime;

    /**
     * 数据查询结束时间
     */
    @ApiModelProperty(value = "数据查询结束时间", name = "endTime")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime endTime;

    /**
     * 查询关键词
     */
    @ApiModelProperty(value = "查询关键词", name = "keyword")
    private String keyword;
}
